package com.mzkj.wanjulaile.mobile.api.modules.order.service;

import com.mzkj.wanjulaile.mobile.api.common.entity.ResultEntity;
import com.mzkj.wanjulaile.mobile.api.modules.order.entity.Order;
import com.mzkj.wanjulaile.mobile.api.modules.order.entity.OrderToy;
import com.mzkj.wanjulaile.mobile.api.modules.weChat.entity.NotifyReturnData;

import java.util.List;
import java.util.Map;

public interface OrderService {

     Order get(String id);

     List<Order> findList(Order order);

     void save(Order order);

     void delete(Order order);

     Order getByOrderNumber(String orderNumber);

     void  updateStatus(Order order);

     int updatePayStatus(Order order);

     Order getLastOrderByAccountId(String accountId);

     List<Order> findListByAccountId(String accountId);

     Order getLastOrderByAccountId2(String accountId);

     Order getLastOrder2ByAccountId(String accountId);

     Order get(Order order);

     ResultEntity<Map> validateOrderStatus(Order order, ResultEntity<Map> resultMessage);

     Order findLastOrderByAccountId(String accountId);

     ResultEntity<NotifyReturnData> wxRefund(Order order);
}